#pragma once
#include "Siim_Define.h"
#include <QSqlDatabase> 
class CSiimData
{
private:
	QSqlDatabase db;
public:
	CSiimData(void);
	~CSiimData(void);
	void Sim();
	void GetStateData();
	void GetSensorAdcData();
	void GetSensorData();

	_SiimStateDatPac StateDatPac;
	_SiimSensorADCDatPac SensorAdcDatPac;
	_SiimSensorDatPac SensorDatPac;

	_SiimSensorISUS SensorISUS;
	_SiimSensorSUNA SensorSUNA;
	_SiimSensorRBR SensorRBR;
	_SiimSensorCH4 SensorCH4;
	_SiimSensorPAH SensorPAH;
	_SiimSensorCO2 SensorCO2;
	_SiimSensorADV SensorADV;

	int SensorDatType;
	int ConnectToDB();
	int WriteDataToSiimInstruct(QByteArray &bArray);
};
